package Oct_2020.part3;

import java.awt.event.ActionListener;
import java.util.*;
import javax.swing.*;
import javax.swing.Timer;

public class main {
    public static void main(String[] args) {
        ActionListener a=new timber();
        Timer t=new Timer(1000,e -> {
            System.out.println("here"+new Date());
        });
//        t.start();
//        JOptionPane.showMessageDialog(null,"QUIT?");
//        System.exit(0);


        String[] str=new String[]{"123456","125","456","454545454","454bb"};
        Arrays.sort(str, Comparator.comparingInt(s -> {
            return s.length();
        }));
        System.out.println(Arrays.toString(str));
        List<Integer> L=new ArrayList<>();
        L.add(1);
        L.add(0);
        L.removeIf(e->e==null);
        try {
            int as=new Scanner(System.in).nextInt();
        }catch (Exception e){
            System.out.println("请输入整数");
        }
    }

}
